<?php get_header(); ?>

	<div id="content">
	
	<?php if (have_posts()) : while (have_posts()) : the_post(); 
		$values = get_post_custom_values("Image");
	?>

	<div class="post" id="post-<?php the_ID(); ?>">
	
	<span class="breadcrumbs"><a href="<?php echo get_option('home'); ?>/">Home</a> &raquo; <?php the_category(', ') ?></span>
	
	<h2 class="title"><?php the_title(); ?></h2>
	
	<div id="stats">
        <span><?php the_time('j F Y') ?></span>
        <?php if(function_exists('the_views')) { ?>
        <span> <?php the_views(); ?></span>
        <?php } ?>
        <span><?php comments_number('No Comment', 'One Comment', '% Comments' );?></span>
    </div>
	 
	<div class="entry clearfloat">
   
                    
        <?php the_content('Read the rest of this entry &raquo;'); ?>
    
        <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
	
	</div>

	<div id="tools">
    
        <div style="float:left;">
        
        <a href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>&amp;title=<?php echo urlencode(the_title('','', false));?>" target="_blank"><img src="<?php echo bloginfo('template_url'); ?>/images/sociable/digg.png" title="Digg this!" alt="" /></a>
        
        <a href="http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=<?php the_permalink();?>&amp;title=<?php echo urlencode(the_title('','', false));?>" target="_blank"><img src="<?php echo bloginfo('template_url'); ?>/images/sociable/delicious.png" title="Add to del.icio.us!" alt="" /></a>
        
        <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>&amp;title=<?php echo urlencode(the_title('','', false));?>" target="_blank"><img src="<?php echo bloginfo('template_url'); ?>/images/sociable/stumbleupon.png" title="Stumble this!" alt="" /></a>
        
        <a href="http://technorati.com/faves?add=<?php echo get_option('home'); ?>" target="_blank"><img src="<?php echo bloginfo('template_url'); ?>/images/sociable/technorati.png" title="Add to Techorati!" alt="" /></a>
        
        <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php echo urlencode(the_title('','', false));?>" target="_blank"><img src="<?php echo bloginfo('template_url'); ?>/images/sociable/facebook.png" title="Share on Facebook!" alt="" /></a>
        
        <a href="http://www.newsvine.com/_tools/seed&amp;save?u=<?php the_permalink();?>&amp;h=<?php echo urlencode(the_title('','', false));?>" target="_blank"><img src="<?php echo bloginfo('template_url'); ?>/images/sociable/newsvine.png" title="Seed Newsvine!" alt="" /></a>
        
        <a href="http://reddit.com/submit?url=<?php the_permalink();?>&amp;title=<?php echo urlencode(the_title('','', false));?>" target="_blank"><img src="<?php echo bloginfo('template_url'); ?>/images/sociable/reddit.png" title="Reddit!" alt="" /></a>
        
        <a href="http://myweb.yahoo.com/myresults/bookmarklet?t=<?php echo urlencode(the_title('','', false));?>&amp;u=<?php the_permalink();?>&amp;ei=UTF" target="_blank"><img src="<?php echo bloginfo('template_url'); ?>/images/sociable/yahoomyweb.png" title="Add to Yahoo!" alt="" /></a>
		
    	</div>

		<div style="float:right;display:block;"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div>
	</div>

	</div>
	
	<div id="comments-wrapper">
	<?php comments_template('',true); ?>
	</div>

	<?php endwhile; else: ?>

	<p>Sorry, no posts matched your criteria.</p>

	<?php endif; ?>

	</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>